#include("/front/teacher/_layout.html")
#@layout()
#define layoutImportcss()
#end
#define layoutHead()
	<title>通知</title>
#end
#define layoutHome()


<div class="page-content hide-navbar-on-scroll">
	<div class="navbar">
		<div class="navbar-inner toolbstyle">
			<div class="left">
				<a class="link back" href="javascript:window.location.href='/front/teacher/html/notes'">
					<i class="icon icon-back"></i>
				</a>
			</div>
			<div class="title" style="display: none;">#(note_rd.getStr("type_name"))</div>
			<div class="right">
			</div>
		</div>
	</div>
	<div class="msg-detail-page-content">
		
		<h1>#(note_rd.getStr("note_title"))</h1>
	   
		<div class="block">
			<p>#(note_rd.getStr("note_desc"))</p>
			#if(note_rd.getInt("type_id") == 2 && note_rd.getDate("start_time")!=null && note_rd.getDate("end_time")!=null)
				<div class="block-footer">时间：#(com.aischool.utils.DateUtil::getDate(note_rd.getDate("start_time"),"M月d日 hh:mm"))至#(com.aischool.utils.DateUtil::getDate(note_rd.getDate("end_time"),"M月d日 hh:mm"))</div>
				<div class="block-footer">地点：#(note_rd.getStr("show_address") ??)</div>
			#end
		</div>

		#for(x : note_pics)
		   <img class="msg-img" img-idx="#(for.index)" src='/front/teacher/fileup/getfile?w=345&h=240&file=#(x)'>
		#end
		#for(x : note_videos)
		   <video src="#(x)"></video>
		#end
		

		<div class="msg-footer">
			<p>#(login_teacher_rd.getStr("org_name"))</p>
			<p>#(note_rd.getStr("user_name"))</p>
			<p>#(add_time)</p>
		</div>

	</div>
</div>

#end
#define layoutImportjs()
#end
#define layoutScript()
<script type="text/javascript">
	$$('img.msg-img').on('click', function(){
		var allimgs = "#(note_rd.getStr("note_pics"))";
		var arryimg = trim(allimgs,';').split(';')
		var idx = $$(this).attr('img-idx');
		var myPhotoBrowser = app.photoBrowser.create({
			photos : arryimg,
			theme: 'dark'
		});
		if (idx > 0) myPhotoBrowser.activeIndex = idx;
		myPhotoBrowser.open();
	});
</script>
#end